<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        div {
            margin: 100px;
            width: 400px;
            height: 400px;
            background-color: antiquewhite;
        }
    </style>

</head>

<body>

    <div>


    </div>
</body>

<script>
    var div = document.getElementsByTagName('div');

    div[0].addEventListener('click', function(e) {
        console.log('(' + (e.pageX - div[0].offsetLeft) + ',' + (e.pageY - div[0].offsetTop) + ')');

    });
</script>

</html>